package com.pm2.dao.personnel;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.pm2.entity.personnel.Developer;

public interface DeveloperDao  extends JpaRepository<Developer, Long> {

	@Modifying
	@Transactional
	@Query("delete Developer where masterplan_id= ?1")
	int deleteByMasterPlanId(int id);
	
	@Query("from Developer where masterplan_id= ?1")
	List<Developer> findByMasterPlanId(int id);
	
	
}
